package com.zytlifeservice.controller;

import com.zytlifeservice.domain.BaseIcon;
import com.zytlifeservice.domain.Result;
import net.sf.json.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by MJS on 2017/4/24.
 */

@RestController
@RequestMapping(value = "/bankLink")
public class BankLinkController {

    @GetMapping(value = "/getAll")
    public Result getBankLinkList() {
        return null;
    }

    @PostMapping(value = "/add")
    public Result addBank(BaseIcon bean) {
        Result result=new Result();
        result.setCode(0);
        result.setMessage("成功");
        result.setData("111");
        return result;
    }
}
